﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using HA.MT3DMS.DomainLayer;

using System.Windows.Controls;

namespace HA.ModFlow.Application
{
    public class MT3DMSViewModel:MDTVIViewModel
    {
        public MT3DMSViewModel(MDTVIViewModel parent, MT3DMSData data):base(parent,false)
        {

            this._mt3dms=data;

            this._imageSource = VMImageSource.mt3dms;

            this._contextMenu = new System.Windows.Controls.ContextMenu();

            MenuItem mi = new MenuItem();

            mi.Header = "重读modflow设置";

            mi.Command = MT3DCommands.ReadModflowSetup;
            mi.CommandParameter = this._mt3dms;

            this._contextMenu.Items.Add(mi);



            Separator sp = new Separator();
            this._contextMenu.Items.Add(sp);




            mi = new MenuItem();

            mi.Header = "校验模型";

            mi.Command = MT3DCommands.CheckMT3DMS;

            this._contextMenu.Items.Add(mi);




            mi = new MenuItem();

            mi.Header = "运行模型";

            mi.Command = MT3DCommands.RunMT3DMS;

            this._contextMenu.Items.Add(mi);



            mi = new MenuItem();

            mi.Header = "删除模型";

            mi.Command = DataCommands.RemoveMT3DMS;

            this._contextMenu.Items.Add(mi);




             sp = new Separator();
            this._contextMenu.Items.Add(sp);


            mi = new MenuItem();
            mi.Command = MT3DCommands.BTNEdit;
            mi.Header = "基本传输(BTN)";

            this._contextMenu.Items.Add(mi);

            mi = new MenuItem();
            mi.Command = MT3DCommands.ADVEdit;
            mi.Header = "对流(ADV)";

            this._contextMenu.Items.Add(mi);


            mi = new MenuItem();
            mi.Command = MT3DCommands.DisEdit;
            mi.Header = "弥散(DSP)";

            this._contextMenu.Items.Add(mi);


            mi = new MenuItem();
            mi.Command = MT3DCommands.SSMEdit;
            mi.Header = "源汇混合(SSM)";

            this._contextMenu.Items.Add(mi);

            mi = new MenuItem();
            mi.Command = MT3DCommands.CRPEdit;
            mi.Header = "化学反应(RCT)";

            this._contextMenu.Items.Add(mi);



            mi = new MenuItem();
            mi.Command = MT3DCommands.GCGEdit;
            mi.Header = "GCG解算包";

            this._contextMenu.Items.Add(mi);



         







        }


        MT3DMSData _mt3dms;


        public override string Desc
        {
            get
            {
                return "MT3DMS模型";
            }
        }

        protected override void OnSelectedChanged()
        {
            if (this.IsSelected)
            {

                UIModule.DefaultModule.RibbonV2ViewModel.ViewOpViewModel.ToolVM.CurrentTool = APPTOOLMODE.GRID3D;

            }
        }

    }
}
